SftTree/NET 2.0

WidthIgnore Property, ItemClass Class

Softel vdm, Inc.

Defines whether cells and the row header in this item are ignored for optimal column width calculation.

Syntax      ItemClass Class (Softelvdm.SftTreeNET)

VB   

Public Property WidthIgnore As Boolean

C#   

public bool WidthIgnore { get; set; }

C++   

public: property bool WidthIgnore {
        bool get();
        void set(bool value);
}

Property Value

True if cells and the row header in this item are ignored for optimal column width calculation, otherwise False.

The default value is False.

Comments

The WidthIgnore property defines whether cells and the row header in this item are ignored for optimal column width calculation.

The Columns.MakeOptimal, ColumnClass.MakeOptimal and ColumnClass.GetOptimalWidth methods are used to calculate the optimal width of columns.

When an item's WidthIgnore property is set to True, its cells and the row header are not considered to calculate a column's optimal width. This is helpful if most cells have average sized content, but a few have a huge amount of text (for example). The few cells that have large contents can be marked (WidthIgnore), so they are sized based on the other, smaller cells. While this may result in these cells being clipped, this may be preferable to an excessive column width. The CellClass.WidthIgnore and RowHeaderClass.WidthIgnore properties works similarly, but apply to one cell or row header only.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com